home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINSOUND
/
CHIMES.ZIP
/
DCEMIDI.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-06
|
348b
|
20 lines
#include <afxwin.h>
#include "dcemidi.h"
void
dmidiSendChannelMessage(HMIDIOUT hMidi, BYTE channel, BYTE status,
BYTE data1, BYTE data2)
{
union {
DWORD dwData;
BYTE bData[4];
} mu;
mu.bData[0] = status | channel;
mu.bData[1] = data1;
mu.bData[2] = data2;
mu.bData[3] = 0;
midiOutShortMsg(hMidi, mu.dwData);
}